#ifndef PRIVATEPANE_H
#define PRIVATEPANE_H

#include <QWidget>
#include "User.h"

#include "MainWindow.h"

namespace Ui {
	class DiscussPane;
}

class DiscussPane : public QWidget
{
    Q_OBJECT

signals:
	void toRead(DiscussPane*);

public:
	explicit DiscussPane(int gid = -1, QWidget *parent = 0);
	~DiscussPane();

	void displayInfo(QString str);
	void displayError(QString str);
	void displayMsg(int from, QString str);

	void moveToBottom();

	bool isPrivate();
	int getGuyId();
	void setGuyId(int val);

	void clearPane();

private:
	Ui::DiscussPane *ui;
	int guyId;

private slots:
	void sendMsg();
};

#endif // PRIVATEPANE_H
